package com.atlzk.common.msg;

/**
 * @author King
 * @date 2021/7/1 - 22:22
 */
public enum CodeMessage {
    SECKILL_REPERTORY_DEFICIENCY(1,"库存不足",50010),
    SECKILL_ALREADY_JOIN(2,"已经参与过该商品的秒杀",50011),


    ;
    Integer index;
    String message;
    Integer code;


    CodeMessage(Integer index,String message,Integer code) {
        this.index = index;
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public Integer getIndex() {
        return index;
    }

    public Integer getCode() {
        return code;
    }

}
